package org.xindian.lbstest;

public class PhoneLocation {
	public double lat = 1.7976931348623157E+308D;
	public double lon = 1.7976931348623157E+308D;
	public float accuracy = 3.4028235E+38F;
	public long time = 0L;

	public void reset() {
		this.lat = 1.7976931348623157E+308D;
		this.lon = 1.7976931348623157E+308D;
		this.accuracy = 3.4028235E+38F;
		this.time = 0L;
	}

	public String toString(long currentTime) {
		return "lat="
				+ this.lat
				+ "; "
				+ "lon="
				+ this.lon
				+ "; "
				+ "accuracy ="
				+ this.accuracy
				+ "; "
				+ "deltaTime="
				+ ((currentTime - this.time) / 1000L < 0L ? 0L
						: (currentTime - this.time) / 1000L) + "s\n";
	}	
}
